
class Point(xc: Int, yc: Int) {
    
    var x: Int = xc
    var y: Int = yc

    def move(dx: Int, dy: Int){
        x += dx
        y += dy
    }
    def look() {
        println("x=" + x + " y=" + y)
    }
}

object Test {
    def main(args: Array[String]) {
        val pt = new Point(5, 5)
        pt.move(1, 1)
        pt.move(1, 3)
        pt.move(0, 1)
        pt.look()
    }
}